package com.example.qingyiapp.service.netutils;

import com.example.qingyiapp.service.entify.FriendXxBean;
import com.example.qingyiapp.service.entify.IntrodutioBean;
import com.example.qingyiapp.service.entify.Databean;
import com.example.qingyiapp.service.entify.FindChoicenessOneBean;
import com.example.qingyiapp.service.entify.FindChoicenessTwoBean;
import com.example.qingyiapp.service.entify.FindFriend;
import com.example.qingyiapp.service.entify.FindSynamicBean;
import com.example.qingyiapp.service.entify.FindTJBean;
import com.example.qingyiapp.service.entify.FindWaitYouBean;
import com.example.qingyiapp.service.entify.FriendSquareBean;
import com.example.qingyiapp.ui.activity.fragment.fragment_AddressUI.address_bean.JavaBean_lv;
import com.example.qingyiapp.ui.activity.fragment.fragment_AddressUI.address_bean.JavaBean_lv2;
import com.example.qingyiapp.ui.activity.fragment.fragment_AddressUI.address_bean.JavaBean_lv3;
import com.example.qingyiapp.ui.activity.fragment.fragment_AddressUI.address_bean.JavaBean_msg;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * @author ：created by 申德丰
 * Create Date ：2019/9/15 10:21
 * Package_Name : QingYiApp
 */
public interface IRetrofit {



    @GET("qa/getQuestionSquare?startidx=0&num=10")
    Observable<Databean> getdatamanager();

    @GET("scenic/get_theme_scenics")
    Observable<JavaBean_lv> getAddress_lv();

    @GET("company/getCompanySquare?")
    Observable<FriendSquareBean> getfriendsquare(@Query("startidx") int startidx, @Query("num") int num);

    @GET("recommend/getTopicEditorPost?startidx=0&num=20")
    Observable<FindTJBean> getFindRecommendJson();

    @GET("scenic/get_nearby_scenics_by_location?longitude=116.410343&latitude=39.916295")
    Observable<JavaBean_lv2> getAddress_lv2();

    @GET("scenic/get_contents_of_nearby_scenics_by_location?longitude=116.410343&latitude=39.916295")
    Observable<JavaBean_lv3> getAddress_lv3();


    @GET("topic/getHotTopicPosts?startidx=3&num=3")
    Observable<FindChoicenessOneBean> getFindChoicenessOneBean();

    @GET("recommend/getBestNoteAndRoadmap?startidx=0&num=20")
    Observable<FindChoicenessTwoBean> getFindChoicenessTwoBean();


    @GET("recommend/recommendUser?")
    Observable<FindFriend> getFindfriend(@Query("startidx") int startidx, @Query("offset") int offset);

    @GET("qa/getQuestionSquare?startidx=0&num=10")
    Observable<FindWaitYouBean> getFindWaitYouBean();

    @GET("qa/getQaSquare?startidx=0&num=10")
    Observable<FindSynamicBean> getFindDynamicBean();
    @GET("app/get_startup_logo")
    Observable<IntrodutioBean> getIntroductionBean();


    @GET("post/app_detail?")
    Observable<JavaBean_msg> getMsg(@Query("pid")String pid);

    @GET("company/getCompanyDetail?")
    Observable<FriendXxBean> getfriendxx(@Query("company_id")String company_id);


}


